package com.tiamo.chatgpt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author luozhiwei
 * @date 2023/6/5 下午11:30
 */
@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_dialogue_content")
public class DialogueContentEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("dialogue_id")
    private Long dialogueId;

    @TableField("user_id")
    private Long userId;

    @TableField("role")
    private String role;

    @TableField("content")
    private String content;

    @TableField("cr_time")
    private Date crTime;

    @TableField("up_time")
    private Date upTime;
}
